<?php
include ("token.php");

	$contentStr = "现在轮到你了，请尽快与服务员联系";
	$contentStr = urlencode($contentStr);
	$a = array("content" => "{$contentStr}");
	$b = array("touser" => "o48Tnjl5eFsfs5Z8fSbs8QuROru8", "msgtype" => "text", "text" => $a);
	$post = json_encode($b);
	$post = urldecode($post);
    
	$url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token={$access_token}";
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_exec($ch);
	curl_close($ch);
?>